#ifndef __FM_CORE_H
#define __FM_CORE_H

#include<unistd.h>

    #define FM_DIR_ROOT 1
    #define FM_DIR_CUSTOM 2
    #define FM_DIR_FILE 3

    typedef struct 
    {   
        DIR *dir_fd;
        FILE file_fd;
        char name[MAX_PATH_LEN];
        char *fstu;
        int type;
        uint32_t d_counts; //director entires counts
    }fm_dir_t;


    char *fm_dir_get_date(uint32_t date,uint32_t time);
    uint32_t fm_dir_get_counts(DIR *dir,int type);
    char *fm_get_type_string(char *name,int attr);


#endif 